package com.youdoneed.news.news.dao;

import com.youdoneed.news.news.entity.CmfOptions;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CmfOptionsMapper {
    int deleteByPrimaryKey(Long optionId);

    int insert(CmfOptions record);

    int insertSelective(CmfOptions record);

    CmfOptions selectByPrimaryKey(Long optionId);

    int updateByPrimaryKeySelective(CmfOptions record);

    int updateByPrimaryKeyWithBLOBs(CmfOptions record);

    int updateByPrimaryKey(CmfOptions record);

    /**
     * 根据名称查询配置
     *
     * @param optionName
     * @return
     */
    CmfOptions selectByOptionName(String optionName);

}